<?php
/*
 * Created on 2012-10-29
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
  include("../nncms_manager_inc.php");
 $tag=$_REQUEST['tag'];
 $item=$_REQUEST['asset_item_id'];
 	include($nncms_db_path. "nns_assist/nns_db_assist_item_class.php");
 	include "nncms_control_memcache.php";
 	include_once LOGIC_DIR.'asset'.DIRECTORY_SEPARATOR.'asset_item.class.php';
 	$assist_item_inst=new nns_db_assist_item_class();
 	$result=$assist_item_inst->nns_db_epg_control($item,$tag);
 	if ($result["ret"]==0){
 		$info_arr=$assist_item_inst->nns_db_assist_item_info($item);
 		$info=$info_arr["data"][0];
 		delete_cache("index_asset_".$info['nns_assist_id']."_".$info['nns_category_id']);
 		//获取dc
	$dc = nl_get_dc(array(
				'db_policy'=>NL_DB_READ,
				'cache_policy'=>NP_KV_CACHE_TYPE_NULL
				)
			);
	//连接数据库
	$dc->open();
 		nl_asset_item::delete_asset_item_list_by_child_cache($dc,$info['nns_assist_id']);
 	}
 	echo json_encode($result);
?>
